package com.cloud.order.service.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper {

    @Insert("INSERT INTO `order` (`product_id`, `count`) VALUES (#{productId}, 1)")
    int create(@Param("productId") int productId);


}
